<html>
<body>
Reports JUnit test method <code>throws</code> clauses with more than one exception.
Such clauses are unnecessarily verbose.
Test methods will not be called from other project code, so there is no need to handle these exceptions separately.
<p>For example:</p>
<pre><code lang="java">
  @Test
  public void testReflection() throws NoSuchMethodException,
      InvocationTargetException, IllegalAccessException {
    String result = (String) String.class.getMethod("trim")
        .invoke(" hello ");
    assertEquals("hello", result);
  }
</code></pre>
<p>A quick fix is provided to replace the exception declarations with a single exception:</p>
<pre><code lang="java">
  @Test
  public void testReflection() throws Exception {
    String result = (String) String.class.getMethod("trim")
        .invoke(" hello ");
    assertEquals("hello", result);
  }
</code></pre>
<!-- tooltip end -->
</body>
</html>